﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default"
    MasterPageFile="~/MainMaster.master" EnableEventValidation="false" %>

<%@ Register Src="~/includes/Featureddoc.ascx" TagName="Featureddoc" TagPrefix="uc2" %>
<%@ Register Src="~/includes/Advertisment.ascx" TagName="AddV" TagPrefix="uc4" %>
<%@ MasterType VirtualPath="~/MainMaster.master" %>
<%@ Register Src="~/includes/featureddoc.ascx" TagName="FeatureControl" TagPrefix="uc1" %>
<%@ Register Src="~/includes/SearchControl.ascx" TagName="SearchControl" TagPrefix="uc1" %>
<%@ Register Src="~/includes/DentistSearchControl.ascx" TagName="DentistSearchControl"
    TagPrefix="uc3" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainTable" runat="server">
    <script>
        function changelayer(idname) {
            if (idname == 1) {
                document.getElementById('div1').style.display = 'block';
                document.getElementById('div2').style.display = 'none';
                document.getElementById('docden').src = 'images/title-find-doctor.gif';
            }
            else {
                document.getElementById('div2').style.display = 'block';
                document.getElementById('div1').style.display = 'none';
                document.getElementById('docden').src = 'images/title-find-dentist.gif';
            }
        }
        function loginlayer() {
            //	document.getElementById('login2').style.display='block';
            //	document.getElementById('login1').style.display='none';

            document.getElementById('login2').style.display = '';
            document.getElementById('login1').style.display = 'none';
        }

        function viewDocProfile(docId) {
            //Comented for implement new URL Formate at 16/07/08 by Ranjeet 
            //window.location.href = "doctor/DoctorsDetails.aspx?id="+docId;
            window.location.href = docId;
            return false;
        }

        function showReglink() {
            if (document.getElementById("regUser").style.display == 'none') {
                document.getElementById("regUser").style.display = 'block';
            }
            else {
                document.getElementById("regUser").style.display = 'none';
            }
        }

        function checkLogin(txtemail, txtpwd) {
            if (document.getElementById(txtemail).value == '') {
                alert("Please enter email id");
                return false;
            }
            if (document.getElementById(txtpwd).value == '') {
                alert("Please enter password");
                return false;
            }
            return true;
        }
        
    </script>
  

    <asp:UpdatePanel ID="UpdatePanel4" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <asp:UpdateProgress ID="UpdateProgress4" runat="server" AssociatedUpdatePanelID="UpdatePanel4"
                DisplayAfter="0" DynamicLayout="true">
                <ProgressTemplate>
                    <div id="IMGDI" align="left" valign="middle" runat="server" style="position: relative;
                        left: 42%; top: 30%; visibility: visible; vertical-align: middle; border-style: none;">
                        <asp:Image ID="ImageManufacturer" runat="server" ImageUrl="~/Images/UpdateImage/ajax-loader-round.gif" />
                        <asp:Label ID="Label8" ForeColor="Red" runat="server" Text="loading...."></asp:Label>
                    </div>
                </ProgressTemplate>
            </asp:UpdateProgress>
            <div class="banner">
                <div class="fl">
                    <img src="images/ban-image.png" alt="" />
                </div>
                <uc1:SearchControl ID="SearchControl1" runat="server" />
                &nbsp;<div class="cl">
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <div class="menu-cat">
        <ul>
            <li><a href="<%=Session["strHttps"]%>doctor/whatisfeatureddoc.aspx" class="home">&nbsp;</a></li>
            <li><a href="<%=Session["strHttps"]%>Community/community.aspx" class="about">&nbsp;</a></li>
            <li><a href="<%=Session["strHttps"]%>doctor/DoctorCalendar.aspx?Id=<%=Session["userID"].ToString()%>"
                class="sub"></a></li>
            <li><a href="<%=Session["strHttps"]%>dicountDoctorDentist/StandByDoctorSearch.aspx"
                class="self">&nbsp;</a></li>
            <li><a href="<%=Session["strHttps"]%>apps.aspx" class="booster"></a></li>
            <div class="cl">
            </div>
        </ul>
    </div>
    <div class="cl">
    </div>
    <div class="left-side fl">
        <h2>
            <strong>Featured Doctor</strong></h2>
        <uc2:Featureddoc ID="Featureddoc1" runat="server" />
        &nbsp;<div class="cl">
            &nbsp;</div>
    </div>
    <!---/ Left wrapper -->
    <div class="right-side">
        <h2 id="loginRefrence">
            <strong>Getting Started</strong></h2>
        <p style="float: left">
            Start making informed choices regarding your health care. Create your FindaDoc account
            now. It’s simple and it’s free.
            <br />
            <div id="login1" style="float: left">
                <% if (Session["userID"].ToString() == "")
                   {
                %>
                <table width="205" style="border-spacing: 0px; border-collapse: collapse" class="general-txt">
                    <tr>
                        <td height="45" align="center">
                            <span onclick="showReglink()" style="cursor: pointer">
                                <input type="button" class="buttonclass" value="Register Now" title="Register Now"
                                    style="cursor: pointer" />
                            </span>
                            <br />
                            <div id="regUser" style="display: none; float: left">
                                <table>
                                    <tr>
                                        <td>
                                            <a href="<%=Session["strHttps"]%>doctor/AccessProfile.aspx" class="buttonclass">Doctor
                                                Registration</a>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <a href="<%=Session["strHttps"]%>dentist/DentistAccessProfile.aspx" class="buttonclass">
                                                Dentist Registration</a>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <a href="<%=Session["strHttps"]%>patient/patient_registration.aspx" class="buttonclass">
                                                Patient Registration</a>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td height="26" align="center">
                            <a href="<%=Session["strHttps"]%>doctor/doctorlogin.aspx"><strong>Already have an account?</strong></a>
                        </td>
                    </tr>
                    <tr>
                        <td height="45" align="center">
                            <a href="javascript:void(0)" onclick="loginlayer();" class="buttonclass">Log In Now</a>
                        </td>
                    </tr>
                    <tr>
                        <td height="14">
                        </td>
                    </tr>
                </table>
                <%
                    }
                   else
                   {
                %>
                <table width="205" style="border-spacing: 0px; border-collapse: collapse" class="general-txt">
                    <tr>
                        <td height="45" class="blue-hd">
                            Welcome
                            <% =Session["LoginName"]%>
                        </td>
                    </tr>
                    <% if (Session["DoctorType"].ToString() == "Doctor")
                       {%>
                    <tr>
                        <td style="height: 18px;">
                            <li>
                                <asp:LinkButton runat="server" ID="linkEditDrAccount" Text="Edit Account" OnClick="linkEditDrAccount_Click1"></asp:LinkButton>
                            </li>
                        </td>
                    </tr>
                    <tr style="height: 18px;">
                        <td>
                            <li>
                                <asp:LinkButton ID="lnkViewProfile" runat="server" OnCommand="lnkViewProfile_Click">View Profile</asp:LinkButton></li>
                        </td>
                    </tr>
                    <tr style="height: 18px;">
                        <td>
                            <li><a href="<%=Session["strHttp"]%>doctor/doctorChangePassword.aspx">Change Password</a></li>
                        </td>
                    </tr>
                    <tr style="height: 18px;">
                        <td>
                            <li><a href="<%=Session["strHttp"]%>doctor/doctorResources.aspx?id=<%=Session["userId"]%>">
                                Doctor Resources</a></li>
                        </td>
                    </tr>
                    <tr style="height: 18px;">
                        <td>
                            <li><a href="<%=Session["strHttp"]%>Community/AddUpdateBlog.aspx">Add/Edit Blog</a></li>
                        </td>
                    </tr>
                    <tr style="height: 18px;">
                        <td>
                            <li><a href="<%= Session["strHttp"].ToString() %>Dashboard/MyPatient.aspx">My Patients</a></li>
                        </td>
                    </tr>
                    <tr style="height: 18px;">
                        <td>
                            <li><a href="<%= Session["strHttp"].ToString() %>Dashboard/MyProfile.aspx">My Profile</a></li>
                        </td>
                    </tr>
                    <tr style="height: 18px;">
                        <td>
                            <li><a href="<%= Session["strHttp"].ToString() %>Dashboard/MyRating.aspx">My Ratings</a></li>
                        </td>
                    </tr>
                    <tr style="height: 18px;">
                        <td>
                            <li><a href="<%= Session["strHttp"].ToString() %>Dashboard/MyMessageBoard.aspx">My MessageBoard</a></li>
                        </td>
                    </tr>
                    <tr style="height: 18px;">
                        <td>
                            <li><a href="<%= Session["strHttp"].ToString() %>Dashboard/ViewBlog.aspx">My Blog</a></li>
                        </td>
                    </tr>
                    <tr style="height: 18px;">
                        <td>
                            <li><a href="<%= Session["strHttp"].ToString() %>Community/Community.aspx">Doc-Friend</a></li>
                        </td>
                    </tr>
                    <%}
                       else if (Session["DoctorType"].ToString() == "Dentist")
                       {%>
                    <tr style="height: 18px;">
                        <td>
                            <li>
                                <asp:LinkButton runat="server" ID="LinkButton1" Text="Edit Account" OnClick="linkEditDntAccount_Click1"></asp:LinkButton></li>
                        </td>
                    </tr>
                    <tr style="height: 18px;">
                        <td>
                            <li>
                                <asp:LinkButton ID="LinkButton2" runat="server" OnCommand="lnkViewDntProfile_Click">View Profile</asp:LinkButton></li>
                        </td>
                    </tr>
                    <tr style="height: 18px;">
                        <td>
                            <li><a href="<%=Session["strHttp"]%>dentist/dentistChangePassword.aspx">Change Password</a></li>
                        </td>
                    </tr>
                    <tr style="height: 18px;">
                        <td>
                            <li><a href="<%=Session["strHttp"]%>dentist/dentistResources.aspx?id=<%=Session["userId"]%>">
                                Dentist Resources</a></li>
                        </td>
                    </tr>
                    <tr style="height: 18px;">
                        <td>
                            <li><a href="<%=Session["strHttp"]%>Community/AddUpdateBlog.aspx">Add/Edit Blog</a></li>
                        </td>
                    </tr>
                    <tr style="height: 18px;">
                        <td>
                            <li><a href="<%=Session["strHttp"]%>Community/AddBlog.aspx">Add Your Blog</a></li>
                        </td>
                    </tr>
                    <tr style="height: 18px;">
                        <td>
                            <li><a href="<%= Session["strHttp"].ToString() %>Dashboard/MyPatient.aspx">My Patients</a></li>
                        </td>
                    </tr>
                    <tr style="height: 18px;">
                        <td>
                            <li><a href="<%= Session["strHttp"].ToString() %>Dashboard/MyProfile.aspx">My Profile</a></li>
                        </td>
                    </tr>
                    <tr style="height: 18px;">
                        <td>
                            <li><a href="<%= Session["strHttp"].ToString() %>Dashboard/MyRating.aspx">My Ratings</a></li>
                        </td>
                    </tr>
                    <tr style="height: 18px;">
                        <td>
                            <li><a href="<%= Session["strHttp"].ToString() %>Dashboard/MyMessageBoard.aspx">My MessageBoard</a></li>
                        </td>
                    </tr>
                    <tr style="height: 18px;">
                        <td>
                            <li><a href="<%= Session["strHttp"].ToString() %>Dashboard/ViewBlog.aspx">My Blog</a></li>
                        </td>
                    </tr>
                    <tr style="height: 18px;">
                        <td>
                            <li><a href="<%= Session["strHttp"].ToString() %>Community/Community.aspx">Doc-Friend</a></li>
                        </td>
                    </tr>
                    <%}
                       else
                       {%>
                    <tr>
                        <td style="height: 18px;">
                            <li><a href="<%= Session["strHttp"].ToString() %>SearchDoctors_adv.aspx"><strong>Search
                                Doctors</strong></a></li>
                        </td>
                    </tr>
                    <tr>
                        <td style="height: 18px;">
                            <li><a href="<%=Session["strHttp"]%>patient/patient_rate.aspx"><strong>Rate Doctors</strong></a></li>
                        </td>
                    </tr>
                    <tr>
                        <td style="height: 18px;">
                            <li><a href="<%= Session["strHttp"].ToString() %>Doctor/topDoctor.aspx"><strong>Top
                                Doctors</strong></a></li>
                        </td>
                    </tr>
                    <tr>
                        <td style="height: 18px;">
                            <li><a href="<%=Session["strHttp"]%>tellaFriend.aspx"><strong>Tell a Friend</strong></a></li>
                        </td>
                    </tr>
                    <tr>
                        <td style="height: 18px;">
                            <li><a href="<%=Session["strHttp"]%>user/usercontent.aspx"><b>My FindaDoc</b></a></li>
                        </td>
                    </tr>
                    <tr>
                        <td style="height: 18px;">
                            <li><a href="<%=Session["strHttp"]%>dicountDoctorDentist/StandByDoctorSearch.aspx"><b>
                                Doctors with Discounts</b></a></li>
                        </td>
                    </tr>
                    <tr>
                        <td style="height: 18px;">
                            <li><a href="<%=Session["strHttp"]%>dicountDoctorDentist/StandByDoctorSearch.aspx"><b>
                                Dentists with Discounts</b></a></li>
                        </td>
                    </tr>
                    <tr style="height: 105px;">
                        <td>
                        </td>
                    </tr>
                    <%} %>
                </table>
                <% } %>
            </div>
            <div id="login2" style="display: none;">
                <form id="form2" name="form1" method="post" action="">
                <table style="border-spacing: 0px; border-collapse: collapse; width: 500px; float: left"
                    class="general-txt">
                    <tr>
                        <td style="padding-top: 10px;">
                            <table style="width: 100%">
                                <tr>
                                    <td colspan="3" align="center">
                                        <asp:Label ID="lblError" runat="server" Visible="False" ForeColor="Red" Font-Bold="true"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="25%">
                                        Email ID:
                                    </td>
                                    <td width="50%">
                                        <asp:TextBox ID="txtDocEmail" runat="server" CssClass="form-txt" Style="width: 130px"></asp:TextBox>
                                    </td>
                                    <td width="25%">
                                        <asp:LinkButton ID="lnkbtnRegistration" runat="server" Text="New User" OnClick="lnkbtnRegistration_Click"
                                            CausesValidation="false"></asp:LinkButton>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        Password:
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtDocPass" runat="server" CssClass="form-txt" Style="width: 130px"
                                            TextMode="Password"></asp:TextBox>
                                        <asp:CheckBox Width="120px" ID="chkremberdoc" runat="server" Text="Remember Me" />
                                    </td>
                                    <td>
                                        <asp:LinkButton ID="lnkbtnForgetPass" runat="server" Text="Forgot Password" CssClass="bluelink"
                                            OnClick="lnkbtnForgetPass_Click" CausesValidation="false"></asp:LinkButton>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                    </td>
                                    <td>
                                        <div class="styled-select" style="width: 150px">
                                            <asp:DropDownList ID="rbtnlDoctorType" runat="server" Style="width: 170px">
                                                <asp:ListItem Value="Doctor">As a Doctor</asp:ListItem>
                                                <asp:ListItem Value="Dentist">As a Dentist</asp:ListItem>
                                                <asp:ListItem Value="Patient">As a User</asp:ListItem>
                                            </asp:DropDownList>
                                        </div>
                                    </td>
                                    <td>
                                        <asp:LinkButton ID="lnkbtnAccessProfile" runat="server" Text="Access Your Profile"
                                            CausesValidation="false" CssClass="bluelink"></asp:LinkButton>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td>
                                        <asp:Button CssClass="buttonclass" ID="btnSubmit" runat="server" OnClick="btnSubmit_Click"
                                            Text="Login" />
                                        <input type="button" class="buttonclass" onclick="Reglayer()" value="Cancel" style="margin-left: 10px" />
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
                </form>
            </div>
            <%--<p>
            <a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image21','','images/register_hover.jpg',1)">
                <img src="images/register.jpg" alt="Register Here" name="Image21" width="114" height="25" border="0" id="Image21" /></a>
        </p>
        <p>Already have an account?</p>
        <p>
            <a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image20','','images/login_hover.png',1)">
                <img src="images/login.png" alt="Login" name="Image20" width="114" height="25" border="0" id="Image20" /></a>--%>
        </p>
        <div class="cl">
            &nbsp;</div>
        <h2>
            <strong>FindaDoc International</strong></h2>
        <p class="bg">
            <strong>Findadoc International is an established and trusted gateway for patients seeking
                treatment by top doctors in leading international hospitals abroad.</strong>&nbsp;&nbsp;&nbsp;&nbsp;<a
                    href="<%=Session["strHttp"]%>SBS_International.aspx">Find Out More</a></p>
        <%--<p class="bg">Thousands of US patients have asked for help in finding high quality, affordable healthcare outside of the US. </p>--%>
        <div class="cl">
            &nbsp;</div>
        <table style="width: 620px" border="0">
            <tr>
                <td width="270" valign="top" style="background-color: rgb(241, 241, 241); padding: 5px;">
                    <div class="related">
                        <h2>
                            <strong>Popular Health Topics</strong></h2>
                        <ul>
                            <asp:Repeater ID="TopicRepeater" runat="server">
                                <ItemTemplate>
                                    <li><a href="<%=Session["strHttp"]%>Community/Topics_<%# Eval("TopicName").ToString().Replace(" ", "_")%>/a.aspx">
                                        <%# Eval("TopicName")%></a></li>
                                </ItemTemplate>
                            </asp:Repeater>
                        </ul>
                        <div style="text-align: left; padding-left: 10px">
                            <a href="<%=Session["strHttp"]%>community/community.aspx"><strong>Read More</strong></a>
                        </div>
                    </div>
                </td>
                <td width="340" valign="top" style="background-color: rgb(241, 241, 241); padding: 5px;
                    border-radius: 10px;">
                    <div class="related">
                        <h2>
                            <strong>Current News and Views</strong></h2>
                        <h3>
                            <p>
                                <a href="<%=Session["strHttp"]%>Community/Topics_Nutrition_and_Fitness/a.aspx"><b>News
                                    -1</b> Nutrition and Fitness.</a></p>
                            <p>
                                <a href="<%=Session["strHttp"]%>Community/Topics_Pharma_-_New_Drugs_in_Development/a.aspx">
                                    <b>News -2</b> Pharma - New Drugs in Development.</a></p>
                            <p>
                                <a href="<%=Session["strHttp"]%>Community/Topics_Pharma_-_Industry_News/a.aspx"><b>News
                                    -3</b> Pharma - Industry News.</a></p>
                            <p>
                                <a href="<%=Session["strHttp"]%>Community/Topics_Healthcare_and_Social_Network/a.aspx">
                                    <b>News -4</b> Healthcare and Social Network.</a></p>
                            <p>
                                <a href="<%=Session["strHttp"]%>Community/Forum.aspx?Id=193"><b>News -5</b> Healthcare
                                    2013 and Beyond.</a></p>
                        </h3>
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    <br />
                </td>
            </tr>
            <tr>
                <td colspan="2" align="center">
                    <a href="<%=Session["strHttp"]%>patient/patient_rate.aspx" class="buttonclass">Rate
                        Your Doctor</a>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <br />
                    <div style="text-align: center">
                     <uc4:AddV ID="ucAddV" runat="server" />
                       
                    </div>
                    <br />
                    <br />
                    <br />
                    <div style="color: #ff8c00; font-size: 14px">
                        <table style="width: 620px">
                            <tr>
                                <%--<td colspan="3" align="center" style="color: #ff8c00;font-size:14px">FindaDoc is a recommended resource of<a href="http://www.palsprovider.com" style="color: #ff8c00;font-size:14px"> PALS Provider</a>-an online PALS training resource</td>--%>
                            </tr>
                        </table>
                    </div>
                </td>
            </tr>
        </table>
    </div>
   
    <br />
    
    <div style="text-align: center">
        <span><a href=" http://www.doctorsites.com?a_aid=8067&amp;a_bid=a893271e">
            <img src="http://www.graphikcreative.com/public/clientfiles/doctorsites/2partemail/findadoc/images/728x90.gif"
                alt="promo_findadoc" width="728" height="90" border="0" /></a> </span>
        <br />
        <br />
        <a href="http://click.linksynergy.com/fs-bin/click?id=k6aFJBIVb/0&offerid=275461.10000194&type=4&subid=0">
            <img alt="Vitacost.com" border="0" src="http://www.vitacost.com/Images/ThirdParty/vitacost-affiliate768x160.jpg"></a><img
                border="0" width="1" height="1" src="http://ad.linksynergy.com/fs-bin/show?id=k6aFJBIVb/0&bids=275461.10000194&type=4&subid=0">
        <br />
        <br />
        <span style="color: #ff8c00; font-size: 14px">FindaDoc is a recommended resource of<a
            href="http://www.palsprovider.com" style="color: #ff8c00; font-size: 14px"> PALS
            Provider</a>-an online PALS training resource</span>
    </div>
    <div class="cl">
    </div>
</asp:Content>
<asp:Content ID="Content2" runat="server" ContentPlaceHolderID="InnerRight">
</asp:Content>
